package com.sbt.demo.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sbt.demo.domain.TismUser;
import com.sbt.demo.mapper.TismUserMapper;
import com.sbt.demo.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService{
	@Autowired
	private TismUserMapper tismUserMapper;
	
	/**
	 * @see com.sbt.demo.service.UserService#insertOne(com.sbt.demo.domain.TismUser)
	 */
	@Override
	public void insertOne(TismUser tu) {
		tismUserMapper.insert(tu);
	}

	/**
	 * @see com.sbt.demo.service.UserService#listUser(java.util.Map)
	 */
	@Override
	public List<TismUser> listUser(Map<String, Object> params) {
		List<TismUser> list = tismUserMapper.listTismUser(params);
		return list;
	}
}
